package com.hyperfix.models.washer.pojos;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author JiangChunYu
 * 2024/4/21
 */
@Data
public class Team implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 分队编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 分队名称
     */
    private String name;
    /**
     * 分队领导
     */
    private String leader;
    /**
     * 联系电话
     */
    private String contactNumber;
    /**
     * 分队描述
     */
    private String description;
    /**
     * 分队成立日期
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
